/*
 * @ author: yyh
 * @ create Time: 2024/1/2
 * @ description: 商品模块接口
 **/
const Router = require('koa-router')
const router = new Router()
const routers = router
const Goods = require('../../db/controllers/goods')
// 新增
routers.post('/add', Goods.add)
routers.get('/list',Goods.getList)
routers.post('/delete',Goods.delete)
routers.post('/update',Goods.update)
routers.post('/detail',Goods.detail)


module.exports = routers